package com.bcdat.sso_user_management.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author zhaolele
 * @date 2019-09-25 11:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User implements Serializable {
    private Long id;
    @NotEmpty
    private String username;
    @ApiModelProperty(example = "false")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
    @ApiModelProperty(example = "false")
    @TableField("is_expired")
    private Boolean expired;
    @ApiModelProperty(example = "false")
    @TableField("is_disabled")
    private Boolean disabled;
}
